#include<iostream>
using namespace std;

const int N = 50;

class Sqlist {
	int a[N];
	int n;

public:
	Sqlist(){
		n = 0;
	}
	void push_back(int x)
	{
		a[++n];
	}
	void print() 
	{
		for (int i = 1; i <= n; i++)
		{
			cout << a[i] << " ";
		}
	}
};